<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>修改用户信息</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/mystyle.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/myceair.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/customerinfo.css}">
</head>

<body>
<!--header-->
<header id="header">
    <hgroup>


        <address class="text blue">
            <p><a id="login" href="../login.jsp">登录</a>&nbsp; | &nbsp; <a id="register" target="_blank"
                                                                          href="/home/register">注册</a></p>
        </address>

        <div class="clear"></div>
    </hgroup>
</header>
<!--end header-->

<!--menu-->
<menu id="menu">
    <nav>
        <ul class="menu_index">
            <a th:href="@{/home/myorder}">
                <li id="menu-myceair" class="current">我的信息<i></i></li>
            </a>
            <a th:href="@{/home/index}">
                <li id="menu-booking">预订行程<i></i></li>
            </a>
        </ul>
    </nav>
</menu>
<!--end content-->

<!-- 第一个下拉菜单 -->
<section class="menu-dropdown" id="dropdown-booking" style="display: block; height:320px ">
    <hgroup id="booking">
        <article id="tabTicket" class="b_content block">
            <div id="main-area">
                <div class="position gray">
                    您的位置：<a th:href="@{/home/index}">首页</a> &gt;
                    <h1>我的东航</h1>
                </div>
                <div class="myceair">
                    <div class="left">
                        <div class="home"></div>

                        <div class="menu font14 bold m1"><a th:href="@{/home/customerinfo}">个人信息</a></div>

                        <div class="menu font14 bold m2"><a th:href="@{/home/myorder}">机票订单</a></div>
                        <div class="child">
                        </div>
                        <div class="menu font14 bold m9"><a th:href="@{/home/editcustomerpassword}">更改密码</a>
                        </div>
                        <script src="/resource2/js/myceair/j.tools.js"></script>
                    </div>
                    <div class="right">
                        <div class="personal_info" id="switch">
                            <div class="body">
                                <div class="b_content active" rel="tab1">

                                    <form th:action="@{/home/editCustomer}" method="post">
                                        <input type="hidden" name="customerId" th:value="${session.customer.id}"/>
                                        <div class="name">
                                            <b class="blue bold">基本信息</b> <span class="gray block"><input
                                                style="width:40px; height: 25px;" type="submit" value="保存"></span>
                                        </div>
                                        <div class="row">
                                            <div class="col1">用户名：</div>
                                            <div class="col2 blue"><input type="text" name="user.username" th:value="${session.customer.username}==null?'未完善':${session.customer.username}"
                                                                          disabled="disabled">&nbsp;
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col1">性别：</div>
                                            <div class="col2 blue">
                                                <input type="radio" name="user.sex" value="男" th:checked="${session.customer.sex=='男'}">男
                                                <input type="radio" name="user.sex" value="女" th:checked="${session.customer.sex=='女'}">女
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col1">真实姓名：</div>
                                            <div class="col2 blue"><input type="text" name="user.realName" th:value="${session.customer.realName==null?'未完善':session.customer.realName}">&nbsp;
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col1">身份证号：</div>
                                            <div class="col2 blue"><input type="text" name="user.identificationCard"
                                                                          th:value="${session.customer.idNumber}==null?'未完善':${session.customer.idNumber}">&nbsp;
                                            </div>
                                            <div class="col2 blue">&nbsp;</div>
                                        </div>
                                        <div class="clear"></div>
                                        <div class="name">
                                            <b class="blue bold">联系信息</b>
                                        </div>
                                        <div class="row">
                                            <div class="col1">手机号码：</div>
                                            <div class="col2 blue"><input type="text" name="user.phoneNumber" th:value="${session.customer.phone}==null?'未完善':${session.customer.phone}">&nbsp;
                                            </div>
                                            <div class="col1">邮件地址：</div>
                                            <div class="col2 blue"><input type="text" name="user.email" th:value="${session.customer.email}==null?'未完善':${session.customer.email}">&nbsp;
                                            </div>
                                        </div>
                                        <div class="clear"></div>
                                        <div class="line"></div>
                                    </form>
                                </div>
                                <div class="clear"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </article>
    </hgroup>
</section>
<div class="bottom_banner"><img src="http://pic.c-ctrip.com/vacation_v2/bottom_banner1.jpg" class="bottom_banner_l"
                                alt="吉祥航空" width="353" height="111"><img
        src="http://pic.c-ctrip.com/vacation_v2/bottom_banner2.jpg" class="bottom_banner_m" alt="瑞士国际航空公司" width="280"
        height="111"><img src="http://pic.c-ctrip.com/vacation_v2/bottom_banner3.jpg" class="bottom_banner_r" alt="日本航空"
                          width="356" height="111"></div>
</body>
</html>
